package com.qf.mapper;

import com.qf.dto.DeveloperDto;
import com.qf.model.Developer;
import com.qf.model.Project;
import com.qf.model.Stage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StageMapper {


    //当前页结果
    public List<Stage> findPage(@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString);


    //总记录数

    public Long count(String queryString);

    //添加一个stage
    public int addOne(Stage stage);

    //根据sid查询stage
    public Stage findById(String sid);

    //修改stage
    int editOne(Stage stage);

    //删除stage
    int delete(String sid);


    //根据pid查询stage
    List<Stage> findByPid(int pid);

}
